package com.zoke.support.http;

import com.zoke.support.http.task.AjaxParams;

/**
 * 数据接口参数集
 * 
 * @author JackWu
 * 
 */
public class ZokeParams extends AjaxParams {
	/** 是否使用缓存 **/
	private boolean useCache;
	/** 操作类的hashCode **/
	private int hashCode;
	/** 操作码 **/
	private int operator;
	/** 操作结果 **/
	private Object result;
	/** 网络请求Url **/
	private String url;
	/** 是否控制网络请求频率 **/
	private boolean isControlUpdate;

	public boolean isControlUpdate() {
		return isControlUpdate;
	}

	public void setControlUpdate(boolean isControlUpdate) {
		this.isControlUpdate = isControlUpdate;
	}

	public boolean isUseCache() {
		return useCache;
	}

	public void setUseCache(boolean useCache) {
		this.useCache = useCache;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public ZokeParams(int hashCode) {
		this.hashCode = hashCode;
	}

	public ZokeParams(int hashCode, String url) {
		this.hashCode = hashCode;
		this.url = url;
	}

	public ZokeParams(int hashCode, String url, int operator) {
		this.hashCode = hashCode;
		this.url = url;
		this.operator = operator;
	}

	public ZokeParams(int hashCode, String url, int operator, boolean useCache) {
		this.hashCode = hashCode;
		this.url = url;
		this.operator = operator;
		this.useCache = useCache;
	}

	public ZokeParams(int hashCode, String url, int operator, boolean useCache,
			boolean isControlUpdate) {
		this.hashCode = hashCode;
		this.url = url;
		this.operator = operator;
		this.useCache = useCache;
		this.isControlUpdate = isControlUpdate;
	}

	public int getHashCode() {
		return hashCode;
	}

	public void setHashCode(int hashCode) {
		this.hashCode = hashCode;
	}

	public int getOperator() {
		return operator;
	}

	public void setOperator(int operator) {
		this.operator = operator;
	}

	public Object getResult() {
		return result;
	}

	public void setResult(Object result) {
		this.result = result;
	}

}
